package com.demo.enums;

/**
 */
public enum PatientBleedingRiskEnum {
    DI_WEI(1, "低危"),
    GAO_WEI(2, "高危");

    private int value;
    private String desc;

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    PatientBleedingRiskEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static PatientBleedingRiskEnum getByValue(Integer value) {
        for (PatientBleedingRiskEnum item : values()) {
            if (item.getValue() == value) {
                return item;
            }
        }
        return null;
    }
}
